<?php
$this->breadcrumbs = array(
    'Main Menu Control' => array('index'),
    'Update Main Menu',
);
?><div class="page-header position-relative">
    <h1>Update Main Menu</h1>
</div><!--/.page-header-->
<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'menu-form',
    'enableAjaxValidation' => false,
    'enableClientValidation' => true,
    'htmlOptions' => array(
        'class' => 'form-horizontal',
    ),
        ));
?>
        <div class="row-fluid">
            <div class="span12">
                <div class="control-group">
                    <label class="control-label">Priority</label>
                    <div class="controls">
                        <?php echo $form->textField($model,'priority', array('size' => 60, 'maxlength' => 100, 'class' => 'span5', 'placeholder' => 'Display order')); ?>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">Menu Name</label>
                    <div class="controls">
                        <?php echo $form->textField($model,'name', array('size' => 60, 'maxlength' => 100, 'class' => 'span5', 'placeholder' => 'Menu name')); ?>
                    </div>
                </div>

                <div class="controls">
                    <label>
                        <input name="Menu[is_static]" type="checkbox" <?php if($model['is_static'] == 1) echo 'checked="checked"';?>>
                        <span class="lbl"> Is static page</span>
                    </label>
                </div>

                <div class="control-group">
                    <label class="control-label">Status</label>
                    <div class="controls">
                        <?php echo $form->dropDownlist($model,'status',MyFunctionCustom::$status);?>
                        <span class="help-inline"><?php echo $form->error($model, 'status'); ?></span>
                    </div>
                </div>

                <div class="clear"></div>
                <div class="form-actions">
                    <button class="btn btn-info" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        Submit
                    </button>
                </div>
            </div>
            <!--PAGE CONTENT ENDS-->
        </div><!--/.row-fluid-->
<?php $this->endWidget(); ?>